#include <stdio.h>
#include <stdlib.h>
void multiply(int, int);
int main()
{
    multiply(3, 33);
    return 0;
}
void multiply(int a, int b)
{
    long product = 0;
    while (b >= 1)
    {
        if (b % 2 == 1)
            product += a;
        a *= 2;
        b /= 2;
    }
    printf("%ld", product);
}

